#pragma once
#include "Acceptor.h"
#include "EventLoop.h"
class TcpServer
{
public:
    TcpServer(string ip, unsigned short port);
    void start();
    void stop();
    void setAllCallbacks(Callback &&Close,Callback &&Msg,Callback &&On);

private:
    Acceptor _acceptor;
    EventLoop _eventLoop;

};

